#app {
    .main-container {
        min-height: calc(100vh - 50px);
        transition: margin-left 0.1s;
        margin-left: $sideBarWidth;
        // top: 50px;
        position: relative;
        background-color: #f0f2f5;
        overflow: hidden;
        // padding: 20px;
    }
    .sidebar-container {
        -moz-user-select: none;
        /* Firefox私有属性 */
        -webkit-user-select: none;
        /* WebKit内核私有属性 */
        -ms-user-select: none;
        /* IE私有属性(IE10及以后) */
        -khtml-user-select: none;
        /* KHTML内核私有属性 */
        -o-user-select: none;
        /* Opera私有属性 */
        user-select: none;
        transition: width 0.28s;
        width: $sideBarWidth;
        background-color: #fff;
        // box-shadow: 0 2px 10px 0 rgba(79, 30, 196, 0.1);
        // border-right: 1px solid #f7f5f5;
        height: 100%;
        position: fixed;
        font-size: 0px;
        top: 50px;
        bottom: 0;
        left: 0;
        z-index: 1001;
        overflow: hidden;
        color: rgba(0, 0, 0, 0.65);
        // font-family: Open Sans, sans-serif;
        font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
        font-size: 14px;
        // font-weight: 600;
        // reset element-ui css
        .horizontal-collapse-transition {
            transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
        }
        .scrollbar-wrapper {
            overflow-x: hidden !important;
        }
        .el-scrollbar__bar.is-vertical {
            right: 0px;
        }
        .el-scrollbar {
            height: calc(100% - 50px);
            // top: 50px;
        }
        .is-horizontal {
            display: none;
        }
        a {
            display: inline-block;
            width: 100%;
            overflow: hidden;
        }
        .svg-icon {
            margin-right: 10px;
            font-size: 18px;
        }
        .el-menu {
            border: none;
            height: 100%;
            width: 100% !important;
        }
        // menu hover
        .submenu-title-noDropdown,
        .el-submenu__title {
            height: 40px;
            line-height: 40px;
            color: rgba(0, 0, 0, 0.65);
            &:hover {
                color: rgb(62, 157, 254) !important;
                background: none;
            }
        }
        .is-active {
            color: rgb(62, 157, 254) !important;
            background-color: #92ceff3a !important;
            border-right: 3px solid $btn-disabled-color !important;
            &>.el-submenu__title {
                color: rgb(62, 157, 254) !important;
            }
        }
        & .nest-menu .el-submenu>.el-submenu__title,
        & .el-submenu .el-menu-item {
            min-width: $sideBarWidth !important;
            height: 40px;
            line-height: 40px;
            transition: all 0.1s;
            &:hover {
                color: rgb(62, 157, 254) !important;
                background: none;
            }
        }
    }
    .hideSidebar {
        .sidebar-container {
            width: 54px !important;
        }
        .main-container {
            margin-left: 54px;
        }
        .submenu-title-noDropdown {
            padding: 0 !important;
            position: relative;
            .el-tooltip {
                padding: 0 !important;
                .svg-icon {
                    margin-left: 20px;
                }
            }
        }
        .el-submenu {
            overflow: hidden;
            &>.el-submenu__title {
                padding: 0 !important;
                .svg-icon {
                    margin-left: 20px;
                }
                .el-submenu__icon-arrow {
                    display: none;
                }
            }
        }
        .el-menu--collapse {
            .el-submenu {
                &>.el-submenu__title {
                    &>span {
                        height: 0;
                        width: 0;
                        overflow: hidden;
                        visibility: hidden;
                        // display: none;
                        display: inline-block;
                    }
                }
            }
        }
    }
    .el-menu--collapse .el-menu .el-submenu {
        min-width: $sideBarWidth !important;
    }
    .hideSidebar {
        .main-container {
            margin-left: 54px;
        }
        .sidebar-container {
            width: 54px;
        }
    }
    // mobile responsive
    .mobile {
        .main-container {
            margin-left: 0px;
        }
        .sidebar-container {
            top: 0;
            transition: transform 0.28s;
            width: $sideBarWidth !important;
        }
        &.closeSidebar {
            .sidebar-container {
                pointer-events: none;
                transition-duration: 0.3s;
                transform: translate3d(-$sideBarWidth, 0, 0);
            }
        }
        &.hideSidebar {
            .sidebar-container {
                pointer-events: none;
                transition-duration: 0.3s;
                transform: translate3d(-$sideBarWidth, 0, 0);
            }
        }
    }
    .withoutAnimation {
        .main-container,
        .sidebar-container {
            transition: none;
        }
    }
}

// when menu collapsed
.el-menu--vertical {
    &>.el-menu {
        .svg-icon {
            margin-right: 16px;
        }
    }
    .nest-menu .el-submenu>.el-submenu__title,
    .el-menu-item {
        height: 40px;
        line-height: 40px;
        &:hover {
            // you can use $subMenuHover
            // background-color: $menuHover !important;
        }
    }
    // the scroll bar appears when the subMenu is too long
    >.el-menu--popup {
        max-height: 100vh;
        overflow-y: auto;
        &::-webkit-scrollbar-track-piece {
            background: #d3dce6;
        }
        &::-webkit-scrollbar {
            width: 6px;
        }
        &::-webkit-scrollbar-thumb {
            background: #99a9bf;
            border-radius: 20px;
        }
    }
}